home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / 000163_blitz-list-request_Thu Aug 4 11:03:41 1994.msg < prev    next >
Internet Message Format  |  1994-09-20  |  3KB

  1. Received: from mhs.swan.ac.uk (mhs.swan.ac.uk [137.44.1.33]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id LAA09026 for <blitz-list@helsinki.fi>; Thu, 4 Aug 1994 11:03:25 +0300
  2. Received: from ce1.swan.ac.uk by mhs.swan.ac.uk with SMTP (PP) 
  3.           id <29212-0@mhs.swan.ac.uk>; Thu, 4 Aug 1994 09:03:18 +0100
  4. Received: from CE1/MERCURY by CE1.SWAN.AC.UK (Mercury 1.12);
  5.           Thu, 4 Aug 94 9:09:43 GMT0BST
  6. Received: from MERCURY by CE1 (Mercury 1.12); Thu, 4 Aug 94 9:09:19 GMT0BST
  7. From: Martin Kift <M.H.Kift@swansea.ac.uk>
  8. To: blitz-list@helsinki.fi
  9. Date: Thu, 4 Aug 1994 09:09:13 GMT0BST
  10. Subject: Re: Problems with blitting blocks fast enough for HW scroller
  11. Priority: normal
  12. X-mailer: Pegasus Mail/Windows v1.11
  13. Message-ID: <14D3A25BDA@CE1.SWAN.AC.UK>
  14. MIME-Version: 1.0
  15. Content-Type: text/plain; charset="us-ascii"
  16. Content-Transfer-Encoding: 7bit
  17. X-Status: 
  18. Status: O
  19.  
  20. >     The problem seems to be that "block" doesn't blit to the screen
  21. >   fast enough.  I'm trying to blit 20 blocks across the bottom of the
  22. >   screen (just out of view), and across the top of the screen (again
  23. >   just out of view.  I'm therefore trying to blit 40 blocks at once.
  24.  
  25. Sounds painful to me.
  26.  
  27. >     When the scrolling is going, there is a very very minor jerk,
  28. >   (hardly noticeble, but I can see it, and I don't like it!).  This
  29. >   doesn't occur if I blit only 18 blocks on top and bottom (36 in
  30. >   total).  
  31. >     I could just reduce the width of my displayed screen by 32
  32. >   pixels, but would like full screen (and even overscan if possible),
  33. >   but "block" isn't fast enough.
  34.  
  35. You are painting off the visible screen are you? Well you'd have to, 
  36. to get smooth pixel scrolling. If not, just allocate a bitmap bigger 
  37. than the visible screen by 2 16pixel blocks in all directions, and 
  38. blit into the furthest 16pixel area.
  39.  
  40. >     What I would like to know is this:  Is there an even faster
  41. >   blitting command than block??
  42. >     How have other people got around this problem??
  43.  
  44. If scrolling at 16pixels per frame is what you want, you don't have 
  45. much choice really. However, if 16 pixels every 2 or 4 frames is okay 
  46. (and thats still pretty fast), why not break down the bits into 
  47. groups. So, if going at 16 pixels every 4 frames, break down the 
  48. blits into equal sizes of 4 groups of blits. Save heaps of time.
  49.  
  50. Theres are more clever ways in which to do 8way scrolling, which I'm 
  51. trying to perfect now.
  52.  
  53. +---------------------------------+---------------------------------------+
  54. | Martin Kift                     |   Software developer (C/C++/OWL/MFC)  |
  55. | Email: M.H.Kift@swansea.ac.uk   |   Procede Software Ltd., UK.          |
  56. +---------------------------------+---------------------------------------+
  57.